package com.zenob.kindle.helloworld;

import com.amazon.kindle.kindlet.Kindlet;
import com.amazon.kindle.kindlet.KindletContext;
import com.flowme.FlowDisplay;

public class HelloWorldKindlet implements Kindlet {

	private KindletContext ctx;

	public void create(KindletContext context) {
		this.ctx = context;
	}

	public void start() {
		FlowDisplay flow = FlowDisplay.instance();
		flow.init();
		ctx.getRootContainer().addKeyListener(flow);
		flow.setContentView(ctx, new HelloView());
	}

	public void destroy() {
	}

	public void stop() {
	}

}